package com.jzo2o.customer.controller.operation;

import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.WorkerCertificationAuditDTO;
import com.jzo2o.customer.service.ICertificationAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 02 7月 2025 00:24
 */
@RestController("operationCertificationAuditController")
@RequestMapping("/operation")
@Api(tags = "运营端 - 认证信息相关接口")
public class CertificationAuditController {
    @Autowired
    private ICertificationAuditService iCertificationAuditService;



    @GetMapping("/worker-certification-audit/page")
    @ApiOperation("分页查询服务人员认证信息")
    public PageResult<WorkerCertificationAuditDTO> queryPage(WorkerCertificationAuditPageQueryReqDTO dto){
       return iCertificationAuditService.queryPage(dto);
    }


    @PutMapping ("/worker-certification-audit/audit/{id}")
    @ApiOperation("审核服务人员认证信息")
    public void waarmerk( @PathVariable("id") Long id,Integer certificationStatus,String rejectReason){
         iCertificationAuditService.waarmerk(id, certificationStatus, rejectReason);
    }
}
